Location - Match
am 07.12.2009 06:49:04 von Rajwinder-office Singh--001636c92b3ae1909b047a1d03aa
Content-Type: text/plain; charset=ISO-8859-1
Here is one simple looking requirement :
I want to put max-age header of value X on my home page and a value of Y for
rest of my website.
index.html is my default page but remember i cannot put
Header set Cache-Control max-age=X
As people will be hitting my website as : : http://www.abc.com and NOT
http://www.abc.com/index.html
Please suggest.
Now while trying things i came across this :
Header set Cache-Control max-age=7200
Ideally it seems that above rule will "NOT" apply to "/" alone. But it does
;-) Now try this :
Header set Cache-Control max-age=7200
This one will "NOT" apply to "/" alone. So some how character "i" matches
"/" ;-)
Thanks
Rajwinder Singh
--001636c92b3ae1909b047a1d03aa
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Here is one simple looking requirement :
I want to put max-age heade=
r of value X on my home page and a value of Y for rest of my website.
r>index.html is my default page but remember i cannot put
<Locat=
ionMatch=A0 "^/index.html">
Header set Cache-Control max-age=3DX
</LocationMatch>
As pe=
ople will be hitting my website as : : http:=
//www.abc.com and NOT http://=
www.abc.com/index.html
Please suggest.
Now while trying things i came across this :=
<LocationMatch=A0 "^/[a-z]">
Header set Cache-Co=
ntrol max-age=3D7200
</LocationMatch>
Ideally it seems that=
above rule will "NOT" apply to "/" alone. But it does =
;-) Now try this :
<LocationMatch=A0 "^/([a-h]|[j-z]">
Header set Cache-Control max-age=3D7200
</LocationMatch>
This one will "NOT" apply to "/" alone. So some how=
character "i" matches "/" ;-)
Thanks
Rajwind=
er Singh
--001636c92b3ae1909b047a1d03aa--